/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package phongmodel;

import java.awt.Color;

/**
 *
 * @author Apapus
 */
public class Light {

    private Point3D location;
    private double ip;//<0;1>?
    private double ia;
    private Color color;
    public static final Color DEFAULT_COlOR = Color.WHITE;
    public static final double DEFAULT_IA = 0.5;
    public static final double DEFAULT_IP = 1;

    public Light() {
        this.location = new Point3D();
        this.ip = DEFAULT_IP;
        this.ia = DEFAULT_IA;
        this.color = DEFAULT_COlOR;
    }

    public Light(Point3D point) {
        this.location = point;
        this.ip = DEFAULT_IP;
        this.ia = DEFAULT_IA;
        this.color = DEFAULT_COlOR;
    }

    public Light(Point3D point, double ia, double ip) {
        this.location = point;
        this.ip = ip;
        this.ia = ia;
        this.color = DEFAULT_COlOR;
    }

    public Light(Point3D point, double ia, double ip, Color color) {
        this.location = point;
        this.ip = ip;
        this.ia = ia;
        this.color = color;
    }
    
    public Point3D getLocation(){
        return this.location;
    }
    
    public double getIA(){
        return this.ia;
    }
    
    public double getIP(){
        return this.ip;
    }
    
    public Color getColor(){
        return this.color;
    }
    
    public void setLocation(Point3D point){
        this.location = point;
    }
    
    public void setIA(double intensity){
        this.ia = intensity;
    }
    
    public void setIP(double intensity){
        this.ip = intensity;
    }
    
    public void setColor(Color color){
        this.color = color;
    }
}
